package com.ktjiaoyu.crm.mapper;

import com.ktjiaoyu.crm.pojo.Role;
import com.ktjiaoyu.crm.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;



public interface RoleMapper extends JpaRepository<Role,Long> {

    public Page<Role> findRolesByRoleNameLike(String roleName, Pageable pageable);

    //根据用户查询角色对象
    public Role findRoleByUsers(User user);



}
